#define  _CRT_SECURE_NO_WARNINGS 1

#include "vector.h"

void TestVector1()
{
	zzh::vector<int> v1;
	v1.push_back(1);
	v1.push_back(2);
	v1.push_back(3);
	v1.push_back(4);
	v1.push_back(5);

	zzh::print_vector(v1);

	v1.insert(v1.begin() + 3, 10);
	zzh::print_vector(v1);
	v1.insert(v1.end(), 40);
	zzh::print_vector(v1);

	int m = 0;
	cin >> m;
	auto pos = find(v1.begin(), v1.end(), m);
	v1.insert(pos, 200);
	zzh::print_vector(v1);


}

void TestVector2()
{
	zzh::vector<int> v;
	v.push_back(1);
	v.push_back(2);
	v.push_back(3);
	v.push_back(4);

	v.insert(v.begin() + 2, 30);
	zzh::print_vector(v);
}

int main()
{
	TestVector1();

	return 0;
}